     .media-center {
        background-color: #f8f9fa; /* خلفية رمادية فاتحة للمنطقة */
        padding: 60px 0;
    }
    .member-card {
    background-color: #ffffff; /* خلفية بيضاء للبطاقة */
    border-radius: 12px; /* حواف أكثر دائرية */
    padding: 25px;
    margin: 0 auto 25px; /* توسيط البطاقة في الجوال */
    max-width: 350px; /* تحديد أقصى عرض للبطاقة على الجوال */
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* تأثير ظل أنيق وعميق */
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* تأثيرات انتقال سلسة */
    border: none; /* إزالة الحدود */
}

.member-card:hover {
    transform: translateY(-10px) scale(1.02); /* رفع البطاقة قليلًا مع تكبير طفيف */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* ظل أكبر وأوضح عند الـhover */
}
   .member-photo {
    /* التنسيقات الأساسية للصورة */
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #a7bb6f;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out; /* إضافة تأثير الانتقال */
}

.member-card:hover .member-photo {
    transform: translateY(-5px); /* رفع الصورة 5 بكسل للأعلى */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* تأثير ظل أوضح عند الرفع */
}
    .member-info h4 {
    margin: 10px 0 5px;
    font-size: 1.1em; /* تقليل حجم الخط من 1.3em إلى 1.1em */
    color: #343a40;
    font-weight: 700;
    text-transform: capitalize;
}
    .member-info p {
        margin: 0;
        font-size: 1em;
        color: #6c757d;
        font-weight: 400;
    }
    .filter-buttons {
        text-align: center;
        margin-bottom: 35px;
    }
    .filter-buttons .btn {
        margin: 0 8px;
        padding: 12px 28px;
        background-color: #a7bb6f;
        color: #fff;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .filter-buttons .btn:hover {
        background-color: #91ab4e;
        transform: scale(1.05);
    }
    .filter-buttons .btn.active {
        background-color: #556b2f;
        box-shadow: inset 0 0 12px rgba(0,0,0,0.2);
    }
    #no-results-message {
        text-align: center;
        margin-top: 25px;
        font-size: 1.2em;
        color: #888;
        display: none;
    }
    .pagination-controls {
        margin-top: 30px;
    }
    /* تصميم متجاوب لعدد 4 بطاقات في السطر على الكمبيوتر وواحدة في الجوال */
    .row.member-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* بطاقة واحدة في السطر على الجوال */
    .member-list-item {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    /* بطاقتان في السطر على الأجهزة اللوحية الصغيرة */
    @media (min-width: 576px) {
        .member-list-item {
            width: 50%;
        }
    }
    /* ثلاث بطاقات في السطر على الأجهزة اللوحية الكبيرة */
    @media (min-width: 768px) {
        .member-list-item {
            width: 33.333%;
        }
    }
    /* أربع بطاقات في السطر على أجهزة الكمبيوتر */
    @media (min-width: 992px) {
        .member-list-item {
            width: 25%;
        }
}
        .pagination-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 20px;
        }
        .pagination-controls button {
            padding: 8px 16px;
            margin: 0 5px;
            cursor: pointer;
            background-color: #a7bb6f;
            border: none;
            color: #fff;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
        .pagination-controls button:hover:not(:disabled) {
            background-color: #91ab4e;
        }
        .pagination-controls button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
        .pagination-info {
            margin: 0 15px;
            font-weight: bold;
        }
        #no-results-message {
            text-align: center;
            margin-top: 20px;
            font-size: 1.2em;
            color: #888;
            display: none;
        }
.organization-chart {
      padding: 30px 10px;
      text-align: center;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-title img {
      max-width: 120px;
      margin-bottom: 15px;
    }

    .section-title h2 {
      font-size: 2em;
      color: #2f4f2f;
      margin-bottom: 25px;
    }

    /* بطاقة عامة */
    .org-node {
      border: 2px solid #fff;
      color: #fff;
      padding: 12px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
      display: inline-block;
      min-width: 165px;
      transition: all 0.3s ease-in-out;
      text-align: center;
      margin: 0 auto 12px;
    }

    .org-node:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    .org-node .title {
      font-weight: bold;
      font-size: 0.9em;
      line-height: 1.3;
    }

    /* ألوان البطاقات */
    .president { background: #03525e; }
    .executive { background: #d3d327; color: #000; }
    .finance { background: #73ae44; }
    .production { background: #04525f; }
    .sales { background: #5a7b42; }
    .legal { background: #2453a3; }

    /* الخطوط */
    .connector {
      width: 2px;
      height: 30px;
      margin: 0 auto;
    }

    .connector.finance { background: #73ae44; }
    .connector.production { background: #04525f; }
    .connector.sales { background: #5a7b42; }
    .connector.legal { background: #2453a3; }
    .connector.president { background: #03525e; }
    .connector.executive { background: #d3d327; }

    /* الخط الرأسي الرئيسي من المدير التنفيذي */
    .main-connector {
      width: 2px;
      height: 30px;
      background: #91ab4e;
      margin: 0 auto;
    }

    .departments-grid {
  display: grid;
  grid-template-columns: repeat(4, min-content); /* العرض على قد المحتوى */
  gap: 40px; /* مسافة متساوية بين الأقسام */
  margin-top: 40px;
  position: relative;
  justify-content: center; /* توسيط الشبكة بالكامل */
}

    /* الخط الأفقي */
    .departments-grid::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 105px;
      right: 194px;
      height: 2px;
      background-color: #91ab4e;
    }

    .departments-grid > div::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 20px;
      background-color: #91ab4e;
    }

    .departments-grid > div {
      position: relative;
    }

    /* شبكة فرعية لرئيس الحسابات */
    .accounts-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 10px;
    }

    /* شبكة فرعية للمشتريات والمبيعات */
    .sales-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 10px;
      align-items: start;
    }

    .sales-sub-grid {
      display: grid;
      grid-template-columns: 1fr;
      margin-top: 10px;
    }

    /* تخطيط رأسي مع خط */
    .vertical-branch {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    .vertical-branch .connector {
      height: 25px;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .departments-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .departments-grid {
        grid-template-columns: 1fr;
      }
      .departments-grid::before,
      .departments-grid > div::before {
        display: none;
      }
      .accounts-grid {
        grid-template-columns: 1fr;
      }
      .sales-grid {
        grid-template-columns: 1fr;
      }
    }
    /* عرض خاص لرئيس مجلس الإدارة */
.org-node.president {
  min-width: 240px;
  font-size: 1.1em;
}

/* عرض خاص للمدير التنفيذي */
.org-node.executive {
  min-width: 190px;
  font-size: 1.05em;
}